<script type="text/javascript" src="/lib/xcommon.js"></script>
<script type="text/javascript">

/* ---------------------------------------------------------------------------
 * initialization script
 */

jQuery(function($) {
	xCart = new iCart({id:"#cart", btActivator:".cartShow", hTotal:".cartTotal", hImage:".cartImage"});
	xAdd = new iAdd({id:"#cart_take", btActivator:".cartAdd", hId:"<?=dat('object','id')?>", hName:"<?=dat('object','title')?>", hPrice:"<?=dat('object','price')?>"});
	
	$(document).click(function(e){ xMgr.hide() });
});

</script>
